package com.dmyang.common;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by brss on 2018/3/23.
 */
@Retention(RetentionPolicy.RUNTIME)//这个注解要在运行时也是生效的
@Target({ElementType.METHOD})
public @interface DataSource {

    DataSourceType value() default DataSourceType.MASTER;

}
